From 071a4c70a634f7d4f74cde4086ff3202968538c9 Mon Sep 17 00:00:00 2001 From: Aravind Gopalakrishnan Date: Mon, 2 Jun 2014 10:19:27 +0200 Subject: [PATCH] x86, amd_ucode: flip revision numbers in printk A failure would result in log message like so- (XEN) microcode: CPU0 update from revision 0x6000637 to 0x6000626 failed ^^^^^^^^^^^^^^^^^^^^^^ The above message has the revision numbers inverted. Fix this. Signed-off-by: Aravind Gopalakrishnan --- xen/arch/x86/microcode_amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c index e83f4b61ed..43475487ec 100644 --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -202,7 +202,7 @@ static int apply_microcode(int cpu) if ( rev != hdr->patch_id ) { printk(KERN_ERR "microcode: CPU%d update from revision " - "%#x to %#x failed\n", cpu, hdr->patch_id, rev); + "%#x to %#x failed\n", cpu, rev, hdr->patch_id); return -EIO; } -- 2.30.2